package action;

import java.util.Date;
import java.util.List;

import common.BaseAction;
import entities.TBank;
import interfaces.IBankService;

public class BankAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7507534255609348887L;

	private IBankService bankService;

	private TBank bankBean;
	private List<TBank> bankList;

	private String bnkNo;
	private String bnkNos;
	private String bnkName;
	private String bnkType;
	private String bnkEdc;
	private String bnkMer;
	private String bnkTer;
	private String bnkAuth;
	private String bnkKey;
	private String bnkBill;
	private String bnkPart;
	private Double bnkP0;
	private Double bnkR0;
	private Double bnkP1;
	private Double bnkR1;
	private Double bnkP2;
	private Double bnkR2;
	private Double bnkP3;
	private Double bnkR3;
	private Double bnkP4;
	private Double bnkR4;
	private Double bnkP5;
	private Double bnkR5;
	private String bnkState;
	private Date bnkDate;
	private Date bnkDateTop;
	private Date bnkDateEnd;
	private String bnkRemark;

	public String show() throws Exception {
		if (!bankService.exist(bnkNo)) {
			addActionError("数据不存在");
			return INFO;
		}else{
			bankBean = bankService.fetch(bnkNo);
			return SUCCESS;
		}
	}
	
	public String bill() throws Exception {
		bankBean = bankService.fetch(bnkNo);
		return SUCCESS;
	}

	////////////////////// ---------------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////
	////////////////////// ---------------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////
	////////////////////// ---------------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////

	public IBankService getBankService() {
		return bankService;
	}

	public void setBankService(IBankService bankService) {
		this.bankService = bankService;
	}

	public TBank getBankBean() {
		return bankBean;
	}

	public void setBankBean(TBank bankBean) {
		this.bankBean = bankBean;
	}

	public List<TBank> getBankList() {
		return bankList;
	}

	public void setBankList(List<TBank> bankList) {
		this.bankList = bankList;
	}

	public String getBnkNo() {
		return bnkNo;
	}

	public void setBnkNo(String bnkNo) {
		this.bnkNo = bnkNo;
	}

	public String getBnkNos() {
		return bnkNos;
	}

	public void setBnkNos(String bnkNos) {
		this.bnkNos = bnkNos;
	}

	public String getBnkName() {
		return bnkName;
	}

	public void setBnkName(String bnkName) {
		this.bnkName = bnkName;
	}

	public String getBnkType() {
		return bnkType;
	}

	public void setBnkType(String bnkType) {
		this.bnkType = bnkType;
	}

	public String getBnkEdc() {
		return bnkEdc;
	}

	public void setBnkEdc(String bnkEdc) {
		this.bnkEdc = bnkEdc;
	}

	public String getBnkMer() {
		return bnkMer;
	}

	public void setBnkMer(String bnkMer) {
		this.bnkMer = bnkMer;
	}

	public String getBnkTer() {
		return bnkTer;
	}

	public void setBnkTer(String bnkTer) {
		this.bnkTer = bnkTer;
	}

	public String getBnkAuth() {
		return bnkAuth;
	}

	public void setBnkAuth(String bnkAuth) {
		this.bnkAuth = bnkAuth;
	}

	public String getBnkKey() {
		return bnkKey;
	}

	public void setBnkKey(String bnkKey) {
		this.bnkKey = bnkKey;
	}

	public String getBnkBill() {
		return bnkBill;
	}

	public void setBnkBill(String bnkBill) {
		this.bnkBill = bnkBill;
	}

	public String getBnkPart() {
		return bnkPart;
	}

	public void setBnkPart(String bnkPart) {
		this.bnkPart = bnkPart;
	}

	public Double getBnkP0() {
		return bnkP0;
	}

	public void setBnkP0(Double bnkP0) {
		this.bnkP0 = bnkP0;
	}

	public Double getBnkR0() {
		return bnkR0;
	}

	public void setBnkR0(Double bnkR0) {
		this.bnkR0 = bnkR0;
	}

	public Double getBnkP1() {
		return bnkP1;
	}

	public void setBnkP1(Double bnkP1) {
		this.bnkP1 = bnkP1;
	}

	public Double getBnkR1() {
		return bnkR1;
	}

	public void setBnkR1(Double bnkR1) {
		this.bnkR1 = bnkR1;
	}

	public Double getBnkP2() {
		return bnkP2;
	}

	public void setBnkP2(Double bnkP2) {
		this.bnkP2 = bnkP2;
	}

	public Double getBnkR2() {
		return bnkR2;
	}

	public void setBnkR2(Double bnkR2) {
		this.bnkR2 = bnkR2;
	}

	public Double getBnkP3() {
		return bnkP3;
	}

	public void setBnkP3(Double bnkP3) {
		this.bnkP3 = bnkP3;
	}

	public Double getBnkR3() {
		return bnkR3;
	}

	public void setBnkR3(Double bnkR3) {
		this.bnkR3 = bnkR3;
	}

	public Double getBnkP4() {
		return bnkP4;
	}

	public void setBnkP4(Double bnkP4) {
		this.bnkP4 = bnkP4;
	}

	public Double getBnkR4() {
		return bnkR4;
	}

	public void setBnkR4(Double bnkR4) {
		this.bnkR4 = bnkR4;
	}

	public Double getBnkP5() {
		return bnkP5;
	}

	public void setBnkP5(Double bnkP5) {
		this.bnkP5 = bnkP5;
	}

	public Double getBnkR5() {
		return bnkR5;
	}

	public void setBnkR5(Double bnkR5) {
		this.bnkR5 = bnkR5;
	}

	public String getBnkState() {
		return bnkState;
	}

	public void setBnkState(String bnkState) {
		this.bnkState = bnkState;
	}

	public Date getBnkDate() {
		return bnkDate;
	}

	public void setBnkDate(Date bnkDate) {
		this.bnkDate = bnkDate;
	}

	public Date getBnkDateTop() {
		return bnkDateTop;
	}

	public void setBnkDateTop(Date bnkDateTop) {
		this.bnkDateTop = bnkDateTop;
	}

	public Date getBnkDateEnd() {
		return bnkDateEnd;
	}

	public void setBnkDateEnd(Date bnkDateEnd) {
		this.bnkDateEnd = bnkDateEnd;
	}

	public String getBnkRemark() {
		return bnkRemark;
	}

	public void setBnkRemark(String bnkRemark) {
		this.bnkRemark = bnkRemark;
	}

}
